package com.etc.springbootmqconsumer.handler;
import com.etc.springbootmqconsumer.constants.RabbitConsts;
import lombok.extern.slf4j.Slf4j;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;


/**
 * @Auther: Wangcc
 * @Date: 2019/9/29 16:33
 * @Description:
 */
@Slf4j
@Component
public class DirectQueueOneHandler {

    @RabbitListener(queues = RabbitConsts.DIRECT_MODE_QUEUE_ONE)
    public void receiveQueue(String text) {
        log.info("接受到：" + text);
    }



}
